package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.NursingTaskCancelDto;
import com.zzyl.nursing.dto.NursingTaskDoDto;
import com.zzyl.nursing.dto.NursingTaskDto;
import com.zzyl.nursing.vo.NursingTaskListVo;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;

/**
 * 护理任务Service接口
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public interface INursingTaskService extends IService<NursingTask> {


    /**
     * 查询护理任务列表

     * @return 护理任务集合
     */
    public List<NursingTaskListVo> selectNursingTaskList(NursingTaskDto dto);

    /**
     * 查询护理任务
     *
     * @param id 护理任务主键
     * @return 护理任务
     */
    NursingTaskVo selectTail(Long id);

    /**
     * 生成护理任务
     *
     * @param elder
     */
    void createMonthTask(Elder elder);

    /**
     * 取消任务
     *
     * @param vo
     */

    void cancel(NursingTaskCancelDto vo);

    /**
     * 执行任务
     *
     * @param dto
     */
    void doIt(NursingTaskDoDto dto);

    /**
     * 修改时间
     *
     * @param dto
     */
    void updateTime(NursingTaskDoDto dto);


}
